<template>
  <div>
    <div class="login-top">
      <img :src="'logo.png' | imagePath" />
    </div>
    <div class="login-title">登录</div>
    <div class="login-item">
      <span>手机号</span>
      <input type="text">
    </div>
    <div class="login-item">
      <span>密码</span>
      <input type="password">
    </div>
    <div class="login-password"><span>忘记密码?</span></div>
    <button class="login-btn">登录</button>
  </div>
</template>

<script>
  export default{
    data(){
      return{}
    },
    beforeCreate() {
      document.querySelector('body').setAttribute('style', ' background:#FFFFFF')
    }

  }
</script>
<style>
  .login-top{
    width: 100%;
    height: 5.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../assets/images/loginBg.png) no-repeat;
    background-size: 100% 100%;
  }
  .login-top img{
    width: 3.73rem;
    height: 1.16rem;
  }
  .login-title{
    font-size: 0.66rem;
    color: #333333;
    margin: 0.26rem 1rem 0.53rem;
    font-weight: 500;
  }
  .login-item{
    margin: 0 1rem 0.26rem;
    border-bottom: 1px solid #CCCCCC;
    padding:0.26rem 0;
    display: flex;
    align-items: center;
  }
  .login-item span{
    color: #999999;
    font-size: 0.4rem;
    margin-right: 0.26rem;
  }
  .login-password{
    text-align: right;
    margin: 0.4rem 1rem;
  }
  .login-password span{
    color: #6DC5C6;
    font-size: 0.32rem;
    font-weight: 400;
    line-height: 0.26rem;
    border-bottom: 1px solid #6DC5C6;
  }
  .login-btn{
    background-color: #6DC5C6;
    border-radius:0.93rem;
    width: 9.2rem;
    height: 1.2rem;
    line-height: 1.2rem;
    text-align: center;
    color: #FFFFFF;
    font-size: 0.4rem;
    margin: 0.96rem 0.4rem 0;
  }
</style>
